package com.ming.luckyDemo.mapper;


import com.ming.luckyDemo.pojo.DO.UserInfoDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 登录 、 注册
 * @author Tcm
 */
@Repository
@Mapper
public interface RegisterMapper {
    int insertUser(@Param("username") String username, @Param("password")String password, @Param("email")String email,@Param("currentDate")String currentDate);

    UserInfoDO queryByName(@Param("username") String username);

    UserInfoDO queryByInfo(@Param("username") String username,@Param("password")String password);

    int updateCookie(@Param("username")String username,@Param("sessionKey")String sessionKey);

}
